﻿using Basic.FormRemoteModel;
using Basic.FormRemoteModel.FormDataSource.Model;
using SqlSugar;

namespace Basic.FormModel.DB
{
    [SugarTable("FormDataSource")]
    public class DBFormDataSource
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        public string SourceKey { get; set; }

        /// <summary>
        /// 数据源使用表单范围
        /// </summary>
        public FormTableType TableType { get; set; }

        public string Title { get; set; }

        public string Show { get; set; }

        public bool IsEnable { get; set; }

        [SugarColumn(IsJson = true)]
        public ConfigTemplate[] Template { get; set; }
    }
}
